package com.htjc.integral.common.enums;

public enum JdReturn {

	QUERY_ORDERSTATUS_SUCCESS(true,"0000","查询订单状态成功",""),
	
	QUERY_SUCCESS(true,"000000","查询成功",""),
	MINUS_INTEGRAL_SUCCESS(true,"000000","扣减积分成功",""),
	PAUSE_BUSINESS_SUCCESS(true,"000000","京东钢镚兑换商城积分业务暂停",""),
	
	JD_DAY_INTEGRAL(true,"JD_42_9001","用户当日已兑换钢镚提示",""),//可不使用getMsg()方法，自定义一个
	JD_MONTH_INTEGRAL(true,"JD_42_9002","用户当月已兑换钢镚提示",""),//可不使用getMsg()方法，自定义一个
	JD_YEAR_INTEGRAL(true,"JD_42_9003","用户当年已兑换钢镚提示",""),//可不使用getMsg()方法，自定义一个
	
	ORDER_REFUND_SUCCESS(true,"JD_9701","当前订单已成功退款",""),
	
	INTEGRAL_SHORTAGE(false,"JD_9801","对不起,您的积分余额不足",""),
	ORDERNUM_ALREADY_EXIST(false,"JD_9801","订单已存在，请确认订单号是否正确",""),
	
	ORDERNUM_NOT_EXIST(false,"JD_9996","积分兑换订单编号不存在",""),
	NO_INTEGRAL_RETURN(false,"JD_9996","当前用户没有可返回的积分,rtmOrderNum:",""),//可不使用getMsg()方法，自定义一个
	NO_ORDER_INFORMATION(false,"JD_9996","订单编号对应的订单信息不存在",""),
	INTEGRAL_INCONFORMITY(false,"JD_9996","传入的积分值与订单扣减时传入的积分值不一致,rtmOrderNum:",""),//可不使用getMsg()方法，自定义一个
	UID_NOT_EXIST(false,"JD_9997","用户标识 UID不存在",""),
	UID_NO_INFORMATION(false,"JD_9997","根据用户 id不能查询到用户信息",""),
	INTEGRAL_NOT_INTEGER(false,"JD_9997","扣减的积分值不是兑换比例值的整数倍",""),
	SIGN_CHECK_ERR(false,"JD_9998","签名校验错误",""),
	SYSTEM_ERR(false,"JD_9999","系统异常",""),
	operFail(false,"1014","操作失败（因不满足条件，未能完成请求的处理）",""), 
	success(true,"0","请求成功",""), 
	errorEncodeFormat(false,"1006", "错误的编码格式",""),
	orderMerchantNotMatch(false,"1013","订单与商家不符",""),
	isNotJson(false,"1003","参数格式错误或不在正确范围内",""),
	keyError(false,"1002", "缺少参数，某个必须传递的参数您没有传递",""),
	platformError(false,"9999", "平台内部错误",""),
	CHANNEL_NO_NOT_EXIST(false,"RED_1001","渠道编号不存在",""),
	IMG_NUMBER_NOT_EXIST(false,"RED_1002","展示位数量不存在",""),
	REDPACKETCAROUSEL_NOT_EXIST(false,"RED_1003","红包轮播图不存在",""),
	
	;
	private boolean status;
	private String code;
	private String msg;
	private String orderNum;
	
	
	private JdReturn(boolean status, String code, String msg, String orderNum) {
		this.status = status;
		this.code = code;
		this.msg = msg;
		this.orderNum = orderNum;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	
}
